home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 726-750 / 734 / powervisor / source / buggyprogram2.asm < prev    next >
Assembly Source File  |  1995-03-18  |  365b  |  34 lines

  1.     ;This is the second example file for debugging.
  2.  
  3.    addsym
  4.  
  5. StartProgram:
  6.         bsr        Long
  7.  
  8.         moveq        #0,d0
  9.         bsr        recur
  10.  
  11.         moveq        #0,d0
  12.         rts
  13.  
  14. Long:
  15.         moveq        #0,d0
  16.         moveq        #1,d1
  17.         moveq        #2,d2
  18.         moveq        #3,d3
  19.         moveq        #4,d4
  20.         moveq        #5,d5
  21.         moveq        #6,d6
  22.         moveq        #7,d7
  23.         rts
  24.  
  25. recur:
  26.         addq.l    #1,d0
  27.         cmp.l        #200,d0
  28.         bgt.s        theend
  29.         bsr        recur
  30. theend:
  31.         rts
  32.  
  33.       END
  34.